﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
        MLGest - Version <%: ViewBag.VersionServicio %> - Bienvenido usuario <%: ViewData["loginUserName"].ToString() %> 
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width=100%>
    <tr>
        <td valign="top" width="400px">    
        <table width=410px class=separacionTd>
        <tr>
        <td valign="top">
               <div id="divUserInfo" class=shadow>
               <table width=100%>             
                    <tr>
                        <td colspan=2 align="center">
                        <h2> MLGest - Version <%: ViewBag.VersionServicio %> </h2><hr/>
                        </td>
                    </tr>

                    <tr>
                        <td rowspan=2 style="width: 33px">
                        <% if (Convert.ToBoolean(ViewData["loginUserHasPhoto"]) == false)
                           { %>
                           <img src="../../Content/images/user_error.png" />
                        <% }
                           else
                           { %>
                           Columna FOTO
                        <% } %>
    
                        </td>
                        <td valign="top">
                            <table width=100%>
                                <tr>
                                    <td>Usuario: <%: ViewData["loginUserName"].ToString() %></td>
                                </tr>
                                <tr>
                                    <td>Rol: <%: ViewData["loginUserRole"].ToString() %></td>
                                </tr>
                            </table>
                        
                        </td>
                    </tr>    
                    <tr>
                        <td valign="bottom" align="center">
                             <button  value="ModificarDatos" class=shadow style="Width:220px; margin-left:10px; margin-right:10px;  background-color: Black; color:Grey; font-family:Calibri; font-size:medium; border-color:Blue; border-style:solid; border-width:1px;"><table width="100%"><tr><td><img src="../../Content/images/comment_add.png" /></td><td valign="middle">Modificar mis datos</td></tr></table></button>                    
                        </td>
                    </tr>
                    </table>
                </div>   
        </td>

        </tr>
        </table>
        </td>
         <td rowspan=2 valign="top" align="right">
        <table width="300px" class=separacionTd>
            <tr>
            <td valign="top">
            <% using (Html.BeginForm())
                        { %>
                    
                 <div id="divMenuPrincipal" class=shadow>
                              <table width="100%" >
                              <tr>
                              <td align="center">
                                 <h2> Acciones: </h2><hr/>
                              </td>
                              </tr>
                              <tr>
                              <td>
                                    <button name="strButtons" value="ABMPersonal" style="Border-width:0px; Width:300px; background-color: Black; font-size:large; color:LightGrey;">
                                    <div id="divButtonPersonal" onmouseover="onMouseOverHandler('#divButtonPersonal');" onmouseout="onMouseOutHandler('#divButtonPersonal');">
                                    <table width=100%><tr><td width="130px"><img src="../../Content/images/user_accept.png" /></td><td valign="middle">Personal</td></tr></table>
                                    </div>
                                    </button>                                                      
                                    
                              </td>
                              </tr>
                              <tr>
                              <td>
                                    <button name="strButtons" value="ABMCompras" style="Border-width:0px; Width:300px; background-color: Black; font-size:large; color:LightGrey;">
                                    <div id="divButtonCompras" onmouseover="onMouseOverHandler('#divButtonCompras');" onmouseout="onMouseOutHandler('#divButtonCompras');">
                                    <table width=100%><tr><td width="130px"><img src="../../Content/images/basket_empty.png" /></td><td valign="middle">Compras</td></tr></table>
                                    </div>
                                    </button>                                                      
                                    
                              </td>
                              </tr>
                             <tr>
                              <td>
                                    <button name="strButtons" value="ABMProductos" style="Border-width:0px; Width:300px; background-color: Black; font-size:large; color:LightGrey;">
                                    <div id="divButtonProductos" onmouseover="onMouseOverHandler('#divButtonProductos');" onmouseout="onMouseOutHandler('#divButtonProductos');">
                                    <table width=100%><tr><td width="130px"><img src="../../Content/images/bullet_add.png" /></td><td valign="middle">Productos</td></tr></table>
                                    </div>
                                    </button>                                                      
                                    
                              </td>
                              </tr>
                              <tr>
                              <td>
                                    <button name="strButtons"  value="ABMVentas" style="Border-width:0px; Width:300px; background-color: Black; font-size:large; color:LightGrey;">
                                    <div id="divButtonVentas" onmouseover="onMouseOverHandler('#divButtonVentas');" onmouseout="onMouseOutHandler('#divButtonVentas');">
                                    <table width=100%><tr><td width="130px"><img src="../../Content/images/tag_accept.png" /></td><td valign="middle">Ventas</td></tr></table>
                                    </div>
                                    </button>                                                      
                                    
                              </td>
                              </tr>
                             
                              </table>
                        </div>
                <% } %>
            </td>
            </tr>
            </table> 
         </td>
   </tr>
   <tr>
     <td valign="top" width="400px">    
        <table width=410px class=separacionTd style="margin-top:20px">
        <tr>
        <td valign="top">
               <div id="divUserNews" class=shadow>
               <table width=100%>             
                    <tr>
                        <td colspan=2 align="center">
                        <h2> Últimas Noticias </h2><hr/>
                      
                        </td>
                    </tr>

                    <tr height="360px" >                       
                        <td colspan=2 valign="top" align="center">
                            
                            <div class="carousel">
                                <table width="100%"><tr><td align=left><button class="prev">&lt;&lt;</button> Anterior </td><td align=right>Siguiente <button class="next">&gt;&gt;</button></td></tr></table>
                               
                                
                                <%: Html.Raw((String)ViewBag.MyHTMLTest)  %>
                              
                           </div>
                        
                        </td>
                    </tr>    
                 
                    </table>
                </div>   
        </td>

        </tr>
        </table>
        </td>
   </tr>
</table>

<!-- 

          
    
            -->
    <!--  -->

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderTitleContent" runat="server">
    <table width=100%>
   <tr>
        <td align="right">
              <% using (Html.BeginForm())
                    { %>
                    <button  value="ModificarDatos" class=shadow style="Width:200px; margin-left:10px; background-color: Black; color:Grey; font-family:Calibri; font-size:medium; border-color:Blue; border-style:solid; border-width:1px;"><div id="divModificarMisDatos"><table width="100%" onmouseout="onMouseOutHandlerLittleButtons(divModificarMisDatos);" onmouseover="onMouseOverHandlerLittleButtons(divModificarMisDatos);"><tr><td><img src="../../Content/images/comment_add.png" /></td><td valign="middle">Modificar mis datos</td></tr></table></div></button>                    
                    <button  type="submit" name="strButtons" class=shadow value="Cerrar Sesión" style="Width:200px; margin-left:10px; background-color: Black; color:Grey; font-family:Calibri; font-size:medium; border-color:Blue; border-style:solid; border-width:1px;"><div id="divCerrarSesion"><table width="100%" onmouseout="onMouseOutHandlerLittleButtons(divCerrarSesion);" onmouseover="onMouseOverHandlerLittleButtons(divCerrarSesion);"><tr><td><img src="../../Content/images/home.png" /></td><td valign="middle">Cerrar Sesión</td></tr></table></div></button>                    
                <% } %>
        </td>
   </tr>
   </table>   
</asp:Content>
